package org.example.demoAbstract;

class Student extends Person{
    private float score ;
    public Student(String name,int age,float score){
        super(name,age) ;   // 调用父类中的构造方法
        this.score = score ;
    }
    public String getContent(){
        return  "学生信息 --> 姓名：" + super.getName() + 
                "；年龄：" + super.getAge() + 
                "；成绩：" + this.score ;
    }
}